home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / incoming / jstools-.6v3 / jstools- / jstools-tk3.6v3.0 / lib / jdoc / jinit.tcl.jdoc < prev    next >
Encoding:
Text File  |  1995-03-14  |  5.8 KB  |  53 lines

  1. {jinit.tcl
  2.  
  3. Introduction
  4. The jinit.tcl library is distributed as part of the jstools package.  It consists of a procedure, j:jstools_init, that reads user preferences and initialises data used by the jstools libraries.  Any application that uses the jstools libraries should either call j:jstools_init early on, or duplicate its functionality.
  5.  
  6. This document describes jinit.tcl version 3.6/3.0.
  7.  
  8. Usage
  9. Accessing the Library
  10. In order to use the jinit.tcl library, it (and any other libraries it depends on) must be in your Tcl auto_path, described in tclvars(n).  Information about how to arrange that, and other conventions common to the jstools libraries, is in the Usage section of The jstools Libraries.
  11.  
  12. Credits and Copyright
  13. Author
  14. Jay Sekora 
  15. js@bu.edu
  16. http://shore.net/~js/
  17.  
  18. Copyright
  19. The library is copyright ⌐ 1992-1994 by Jay Sekora, but may be freely copied and modified for non¡commercial purposes.  (Please contact me if you want to use it for a commercial purpose, this may be OK under some circumstances.)
  20.  
  21. Overview
  22. Procedure
  23. j:jstools_init - common initialisation for jstools applications and libraries
  24.  
  25. j:jstools_init
  26. Usage
  27.     j:jstools_init
  28.  
  29. Description
  30. This procedure performs common setup tasks for the jstools applications and other applications using the jstools libraries.  Specifically, it does the following:
  31.  
  32. * It sets the Tk colormodel to colour if possible (even on displays with only a few colours).  The Tk default is to use monochrome if the display supports sixteen colours or fewer, but many displays with as few as four colours have no trouble displaying Tk's 3¡D effects, so the jstools applications use colour if possible.
  33.  
  34. * It sets NAME and HOME global variables with the values of the corresponding environment variables.
  35.  
  36. * It sets the application's `client' and `command' properties for the use of X session managers.
  37.  
  38. * It reads in the user's global preferences.  This is important, as many of the jstools libraries depend on the existence of variables created during this process.
  39.  
  40. * It sets up Text and Entry bindings to use the user's preferred editor emulation, and reads the user's ~/.tk/textbindings.tcl and ~/.tk/entrybindings.tcl, if any.
  41.  
  42. If you don't want to use j:jstools_init because there's something it does that you don't like, you should refer to the procedure itself to see what you need to do to initialise your application.
  43.  
  44. Evolution
  45. Feel free to report bugs (and feature requests) to me, <js@bu.edu>, and I will try to deal with them.  Also, feel free to fix bugs or add features on your own and let me know how you did it.
  46.  
  47. Bugs and Limitations
  48. * Some applications may not use text widgets, entry widgets, or both.  Initialising text and entry mappings is a waste of time and I/O in that case.  (On the other hand, any application which uses such jstools procedures as j:fs or j:prompt_tcl needs entry bindings, and an application which uses j:more might need text bindings.)
  49.  
  50. * While colour works well for displays with small numbers of shades of grey, it may not work well for all displays with small numbers of actual distinct hues.  Ideally, whether to use colour or monochrome would be decided based on the kind of display (e.g. StaticGray vs. DirectColor) as well as on the number of colours, or perhaps it would be a user preference.
  51.  
  52. * It would be nice if j:jstools_init could handle setting up the auto_path variable to find the libraries.  Since it is itself called using the auto¡loading mechanism, of course, it can't.
  53. } {{{display:foreground:Red {10.282 11.0}} {jdoc:xref:link {4.52 4.59 4.98 4.112 4.171 4.192 10.210 10.231 10.239 10.256 10.260 10.281 23.0 23.14 30.51 30.58 30.101 30.122}} {jdoc:xref:manpage {10.126 10.133}} {jdoc:anchor:anchorname {3.0 4.0 8.0 9.0 12.0 13.0 21.0 22.0 25.0 26.0 44.0 45.0}} {richtext:font:roman {2.0 3.0 4.0 4.4 4.13 4.52 4.59 4.98 4.112 4.175 4.182 4.225 4.232 4.262 4.276 6.24 6.33 8.0 9.21 10.20 10.29 10.102 10.111 10.126 10.133 10.214 10.221 10.243 10.248 10.260 10.281 10.282 11.0 12.0 14.0 15.0 15.9 16.0 16.21 18.0 19.0 21.0 23.14 23.43 23.50 25.0 27.15 28.0 30.0 30.51 30.58 30.105 30.112 32.279 32.286 34.10 34.14 34.19 34.23 38.80 38.87 40.104 40.126 40.131 40.154 42.25 42.39 44.0 45.0 45.55 45.66 47.0 47.20 48.202 48.209 48.224 48.228 48.232 48.244 48.297 48.303 50.153 50.157 50.268 50.271 52.21 52.36 52.65 52.74 53.0}} {richtext:font:italic {50.153 50.157 50.268 50.271}} {richtext:font:bold {4.4 4.13 4.52 4.59 4.175 4.182 4.225 4.232 6.24 6.33 10.20 10.29 10.214 10.221 23.43 23.50 28.0 29.0 30.51 30.58 30.105 30.112 32.279 32.286 38.80 38.87 40.104 40.126 40.131 40.154 48.202 48.209}} {richtext:font:bolditalic {10.243 10.248 10.260 10.281}} {richtext:font:typewriter {4.98 4.112 4.262 4.276 10.102 10.111 10.126 10.133 15.0 15.9 16.0 16.21 23.0 23.14 27.0 27.15 34.10 34.14 34.19 34.23 42.25 42.39 45.55 45.66 48.224 48.228 48.232 48.244 48.297 48.303 52.21 52.36 52.65 52.74}} {richtext:font:heading0 {1.0 2.0}} {richtext:font:heading1 {3.0 4.0 8.0 9.0 12.0 13.0 21.0 22.0 25.0 26.0 44.0 45.0}} {richtext:font:heading2 {9.0 9.21 10.282 11.0 13.0 14.0 18.0 19.0 22.0 23.0 26.0 27.0 29.0 30.0 47.0 47.20}} {jdoc:anchorname:Introduction {3.0 4.0}} {jdoc:link:jstools.jdoc {4.52 4.59 30.51 30.58}} {jdoc:topic:jstools {4.52 4.59}} {jdoc:anchorname:Usage {8.0 9.0}} {jdoc:manpage:tclvars {10.126 10.133}} {jdoc:link:jslibraries.tcl {10.210 10.231}} {jdoc:link:jslibraries.jdoc#Usage {10.239 10.256}} {{} {10.243 10.256 12.0 23.0 24.0 25.2 25.14 27.1 27.15 30.0 43.0 44.0}} {jdoc:link:jslibraries.jdoc {4.171 4.192 10.260 10.281 30.101 30.122}} {jdoc:anchorname:Credits_and_Copyright {12.0 13.0}} {jdoc:anchorname:Overview {21.0 22.0}} {jdoc:anchorname:Evolution {44.0 45.0}} {jdoc:link:#j:jstools_init {4.98 4.112 23.0 23.14}} {jdoc:anchorname:j:jstools_init {25.0 26.0}}} {{richptr 4.276} {abbrevstart 53.0} {abbrevend 53.0} {insert 6.49} {anchor 6.49} {current 1.9}}}